package com.lwq.weatherapp.net;

import org.devio.hi.json.HiJson;

import java.util.Map;

/**
 *  网络请求封装
 */
public interface IHiNet {
    /**
     *  get请求
     *  @param url
     *  @param params
     */
    void get(String url, Map<String, String> params, NetListener listener);

    interface NetListener{
        void onSuccess(HiJson res);
        void onFail(String message);
    }

}
